package com.iclub.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.iclub.model.Merchant;
import com.iclub.model.UserMerchantRelation;

public interface MerchantDao {
	
	public Merchant selectMerchant(int merchantId)throws SQLException;
	
	public void addMerchant(Merchant mer)throws SQLException;
	
	public List<Merchant> selectJoinMerchantList(Map<String,String> map)throws SQLException;
	
	public List<Merchant> selectMerchantList(Map<String,String> map)throws SQLException;
	
	public void delMerchant(int merchantId)throws SQLException;
	
	public void joinMerchant(UserMerchantRelation relation)throws SQLException;
	
	public void quitMerchant(UserMerchantRelation relation)throws SQLException;

}
